<html>

<head>
	<meta name="apple-itunes-app" content="app-id=myAppStoreID, affiliate-data=myAffiliateData, app-argument=https://fanyi.baidu.com/?aldtype=16047#auto/zh">

	<script type="text/javascript">
		function aa(){
            var t1 = Date.now();
            var ifr = document.createElement("iframe");
            ifr.setAttribute(
                "src",
                "com.pingan.eztpro://fc.app/openwith?url={'path':'/pre-report/home'}"
            );
            ifr.setAttribute("style", "display:none");
            document.body.appendChild(ifr);
            setTimeout(function() {
                var t2 = Date.now();
                alert("t2 - t1" + (t2 - t1));
                if (!t1 || t2 - t1 < 1030) {
                    // 当前没有此app
                    alert("请先安装App");
                }
                document.body.removeChild(ifr);
            }, 1000);
}
	</script>
</head>

<body>
	<a style="font-size: 100px" onclick="aa()">start application</a>
</body>

</html>